package com.team.cloudsharing;

import java.util.Locale;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.team.cloudsharing.service.file.FileService;
import com.team.cloudsharing.service.user.UserService;

@Controller
public class StatusWebservice {
	
	@Autowired
	UserService userService;
	
	@Autowired
	FileService fileSerivce;
	
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String connect(Locale locale){
		//haskjhdkjf
		return "welcome";
	}
	
//	public static void main(String[] args) {
//		System.out.println(removeCharactersSUFFIXInTheEnd("Test/F1/F2/"));
//		System.out.println(removeCharactersSUFFIXInTheEnd("Test/F1/F2"));
//		System.out.println(removeCharactersSUFFIXInTheEnd(""));
//	}
//	
//	private static String removeCharactersSUFFIXInTheEnd(String stringInput){
//		if (! stringInput.isEmpty() && stringInput.charAt(stringInput.length() - 1) == '/'){
//			stringInput = stringInput.substring(0, stringInput.length() - 1);
//		}
//		return stringInput;
//	}
}
